﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bluyel.Core
{
    /// <summary>
    /// Base of all type instance.
    /// </summary>
    public abstract class TypeBase : IType
    {
        UniqueId _id;
        string _name;

        //---------------------------------------------------------------------
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        public TypeBase(UniqueId id, string name)
        {
            _id = id;
            _name = name;
        }

        //---------------------------------------------------------------------
        public UniqueId Id 
        { 
            get{ return _id;}
            
        }

        //---------------------------------------------------------------------
        public string Name 
        {
            get { return _name; } 
        }

        //---------------------------------------------------------------------
        public override string ToString()
        {
            return _name;
        }
    }
}
